import request from '@/utils/request'
//添加合同
export function contract_edit(contract_id,dat) {
  return request({
    url: '/market/contract/contract_edit',
    method: 'post',
    data:{
      contract_id,
      title:dat.title,
      contract_num:dat.contract_num,
      entrust_unit:dat.entrust_unit,
      build_position:dat.build_position,
      type:dat.type,
      qianyue_date:dat.qianyue_date,
      price:dat.price,
      jiezhi_date:dat.jiezhi_date,
      shengxiao_date:dat.shengxiao_date,
      market_person_uid:dat.market_person_uid,
      market_person_b_uid:dat.market_person_b_uid,
      remark:dat.remark,
      bus:dat.bus,
      partner:dat.partner,
      is_tixing:dat.is_tixing,
      tixing_date:dat.tixing_date
    }
  })
}
//获取用户列表
export function user_list(dat) {
  return request({
    url: '/market/system/user_list',
    method: 'post',
    data:{
      page:dat.page,
      limit:dat.limit,
      keyword:dat.keyword
    }
  })
}

//业务类型列表
export function bus_list(dat) {
  return request({
    url: '/market/system/bus_list',
    method: 'post',
    data:{
      page:dat.page,
      limit:dat.limit,
      keyword:dat.keyword
    }
  })
}
//合同详情
export function contract_detail(contract_id) {
  return request({
    url: '/market/contract/contract_detail',
    method: 'post',
    data:{
      contract_id
    }
  })
}
